
import VueRouter from 'vue-router'

import account from './account.vue'
import login from './login.vue'
import reg from './reg.vue'
// 定义vue-router对象

const router = new VueRouter({
	routes:[
		{
			path:'/account',
			component:account,
			children:[
				{
					path:'reg',
					component:reg
				},
				{
					path:'login',
					component:login
				}
			]
		}
		
	]
})

export default router